package com.example.tliasmanagement.mapper;

import com.example.tliasmanagement.dto.QuerySubjectDTO;
import com.example.tliasmanagement.dto.SubjectListDto;
import com.example.tliasmanagement.entity.Subject;
import com.example.tliasmanagement.vo.EmpListVo;
import com.example.tliasmanagement.vo.SubjectVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface SubjectMapper {
//    @Select("select id, name, master_id, introduce, create_time, update_time from subject")
//    List<Subject> select();

    Page<SubjectVo> page(QuerySubjectDTO dto);

    void insertSubject(Subject subject);

    @Select("select * from subject where id = #{id}")
    Subject getSubjectById(int id);

    void updateSubject(Subject subject);

    @Delete("delete from subject where id = #{id}")
    void deleteSubject(int id);

}
